# -*- coding: utf-8 -*-

import numpy as np
import cv2

def readImage(image_path):
    cap = cv2.VideoCapture(image_path)
    ret, image = cap.read()
    if not ret:
        return False, image
    return True, image

def loadCamera():
    cap = cv2.VideoCapture(0)
    ret, image = cap.read()
    if not ret:
        return False, image
    return True, image
